import request from '@/utils/request'

// 查询水泵列表
export function listPump(query) {
  return request({
    url: 'drainage/water/list',
    method: 'get',
    params: query
  })
}

// 查询水泵详细
export function getPump(id) {
  return request({
    url: 'drainage/water/' + id,
    method: 'get'
  })
}

// 新增水泵
export function addPump(data) {
  return request({
    url: 'drainage/water',
    method: 'post',
    data: data
  })
}

// 修改水泵
export function updatePump(data) {
  return request({
    url: 'drainage/water',
    method: 'put',
    data: data
  })
}

// 删除水泵
export function delPump(id) {
  return request({
    url: 'drainage/water/' + id,
    method: 'delete'
  })
}
